f412df
@@ -63,12 +63,6 @@
public abstract class RemoteFileEndpoint<T> extends GenericFileEndpoint<T> {
         afterPropertiesSet();
         RemoteFileConsumer<T> consumer = buildConsumer(processor);
 
-        // we assume its a file if the name has a dot in it (eg foo.txt)
-        if (configuration.getDirectory().contains(".")) {
-            throw new IllegalArgumentException("Only directory is supported. Endpoint must be configured with a valid directory: "
-                    + configuration.getDirectory());
-        }
-
         if (isDelete() && getMove() != null) {
             throw new IllegalArgumentException("You cannot both set delete=true and move options");
         }
